public class Text3 {
    // 371 两整数之和
    public int getSum(int a, int b) {
        while(b != 0){
            int x = a ^ b;
            int tmp = (a & b) << 1;
            a = x;
            b = tmp;
        }

        return a;
    }
}
